package com.jy.bo.common.conf.config.db.impl;

import com.fqgj.common.base.AbstractBaseMapper;
import com.jy.bo.common.conf.config.db.BizConfigDao;
import com.jy.bo.common.conf.config.db.entity.BizConfigEntity;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.Map;

/**
 * User: anonymous
 * Date: 2020-08-20
 * Time: 10:28:00.655
 */

@Repository
public class BizConfigDaoImpl extends AbstractBaseMapper<BizConfigEntity> implements BizConfigDao {

    @Override
    public BizConfigEntity selectByKey(String key) {
        Map<String, Object> params = new HashMap<>();
        params.put("configKey", key);
        return getSqlSession().selectOne(getStatement("selectByKey"), params);
    }
}